package elephant.core;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 
 * @author icecooly
 *
 */
class WorkerRunnable implements Runnable{
	private static Logger logger=LoggerFactory.getLogger(WorkerRunnable.class);
	private Runnable threadWorker;
	public WorkerRunnable(Runnable threadWorker) {
		this.threadWorker=threadWorker;
	}
	//
	@Override
	public void run() {
		try{
			threadWorker.run();
		}catch(Exception e){
			logger.error(e.getMessage(),e);
		}finally{
		}
	}
	
}
